package com.css.landslide.risk.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.css.handler.GeometryTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author dingling
 * @desc 地震滑坡次生灾害评估结果
 * @date 2024-09-27 15:05
 **/


@Data
@Accessors(chain = true)
@TableName(value = "landslide_risk_level")
public class LandslideRiskLevel implements Serializable {


    private String id ;

    /**
     * 地震id
    **/ 
    private String earthQuakeId;

    /**
     * 影响场 版本
    **/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private String dzVersion;

    /**
     * 影响等级
    **/
    private String dzIntensity;

    /**
     * 空间数据
    **/
    @TableField(value = "geom",typeHandler = GeometryTypeHandler.class)
    private String geom;

    /**
     * 结果
    **/
    private BigDecimal riskValue;

    /**
     * 评估等级  1极低 2低 3中 4高 5极高
    **/
    private Integer riskLevel;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;




    @TableField(exist = false)
    private String geomText;

    @TableField(exist = false)
    private Long provinceId;

    @TableField(exist = false)
    private Boolean hasRisk;

}
